package day5.HomeWork;

public class Salesman extends Employee {
    private int salay;
    private int sell;

    public Salesman() {
    }

    public Salesman(String name, String gender, String date, int salay, int sell) {
        super(name, gender, date);
        this.salay = salay;
        this.sell = sell;
    }

    @Override
    public void computeSalary() {
        double money = salay+sell;
        System.out.println("销售员 "+getName()+"本月工资为 "+money+" 元");
    }
}
